package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.entity.RoleUserMap;
import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

public interface RoleUserMapMapper extends BaseMapper<RoleUserMap> {

    List<RoleUserMap> oneRoleToUser(@Param("ids") int[] ids, @Param("roleId") Integer roleId);

    void deleteRoleToUser(@Param("createBy") String createBy,@Param("userId") Integer userId,@Param("roleId") Integer roleId);

}
